﻿
/*----------------------------------------------------------------//
// 文件名：MoLevelDeclare.cs
// 文件功能描述：实体 MoLevelDeclare.
// 
// 创建标识：Template  ver 5.0.20090429 2009-07-10
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------*/
#region MoLevelDeclare
using System;
using System.Data;
namespace Las.Model
{
	/// <summary>
	/// 业务实体MoLevelDeclare
	/// </summary>
	public partial class MoLevelDeclare:ICloneable
	{
		#region 表LevelDeclare的字段
		private string levDclId;
		private int yearNum;
		private int itemType;
		private string itemId;
		private string itemName;
		private string class1;
		private string class2;
		private string class3;
		private string class4;
		private string class5;
		private string class6;
		private string class7;
		private string class8;
		private string class9;
		private string class10;
		private string class11;
		private string class12;
		private int fromYear;
		private int fromLevel;
		private int toLevel;
		private int approveLev;
		private string sbdwId;
		private string sbdwName;
		private string sldwId;
		private string sbrId;
		private string sbrName;
		private string sldwName;
		private DateTime sbsj;
		private int levDclStatus;
		private string scrId;
		private string scrName;
		private DateTime scsj;
		private string assGrpId;
		private string assGrpName;
		private int assGrpScore;
		private string kcrId;
		private string kcrName;
		private DateTime kcsj;
		private string pdrId;
		private string pdrName;
		private DateTime pdsj;
		private string zgscqk;
		private string zgsbqk;
		private string djkcqk;
		#endregion
		
		#region 构造函数
		public MoLevelDeclare()
		{
			                           sbsj=new DateTime(1900,1,1);    scsj=new DateTime(1900,1,1);      kcsj=new DateTime(1900,1,1);   pdsj=new DateTime(1900,1,1);     	    
		   
		}
		#endregion
		
		#region 拷贝构造函数

		public MoLevelDeclare(MoLevelDeclare item)
		{
			item.CopyTo(this);
		}
		#endregion
		
		#region 带参数构造函数
	    public MoLevelDeclare(string levDclId,int yearNum,int itemType,string itemId,string itemName,string class1,string class2,string class3,string class4,string class5,string class6,string class7,string class8,string class9,string class10,string class11,string class12,int fromYear,int fromLevel,int toLevel,int approveLev,string sbdwId,string sbdwName,string sldwId,string sbrId,string sbrName,string sldwName,DateTime sbsj,int levDclStatus,string scrId,string scrName,DateTime scsj,string assGrpId,string assGrpName,int assGrpScore,string kcrId,string kcrName,DateTime kcsj,string pdrId,string pdrName,DateTime pdsj,string zgscqk,string zgsbqk,string djkcqk)
		{
		this.levDclId=levDclId;
		this.yearNum=yearNum;
		this.itemType=itemType;
		this.itemId=itemId;
		this.itemName=itemName;
		this.class1=class1;
		this.class2=class2;
		this.class3=class3;
		this.class4=class4;
		this.class5=class5;
		this.class6=class6;
		this.class7=class7;
		this.class8=class8;
		this.class9=class9;
		this.class10=class10;
		this.class11=class11;
		this.class12=class12;
		this.fromYear=fromYear;
		this.fromLevel=fromLevel;
		this.toLevel=toLevel;
		this.approveLev=approveLev;
		this.sbdwId=sbdwId;
		this.sbdwName=sbdwName;
		this.sldwId=sldwId;
		this.sbrId=sbrId;
		this.sbrName=sbrName;
		this.sldwName=sldwName;
		this.sbsj=sbsj;
		this.levDclStatus=levDclStatus;
		this.scrId=scrId;
		this.scrName=scrName;
		this.scsj=scsj;
		this.assGrpId=assGrpId;
		this.assGrpName=assGrpName;
		this.assGrpScore=assGrpScore;
		this.kcrId=kcrId;
		this.kcrName=kcrName;
		this.kcsj=kcsj;
		this.pdrId=pdrId;
		this.pdrName=pdrName;
		this.pdsj=pdsj;
		this.zgscqk=zgscqk;
		this.zgsbqk=zgsbqk;
		this.djkcqk=djkcqk;
		}
		#endregion
		
		#region 表LevelDeclare的字段属性
		/// <summary>
		/// LEV_DCL_ID
		/// </summary>
		public string LevDclId
		{
			get {return levDclId;}
			set {levDclId=value;}
		}
		/// <summary>
		/// YEAR_NUM
		/// </summary>
		public int YearNum
		{
			get {return yearNum;}
			set {yearNum=value;}
		}
		/// <summary>
		///1是人，2是单位，3 训练机构
		/// </summary>
		public int ItemType
		{
			get {return itemType;}
			set {itemType=value;}
		}
		/// <summary>
		/// ITEM_ID
		/// </summary>
		public string ItemId
		{
			get {return itemId;}
			set {itemId=value;}
		}
		/// <summary>
		/// ITEM_NAME
		/// </summary>
		public string ItemName
		{
			get {return itemName;}
			set {itemName=value;}
		}
		/// <summary>
		/// CLASS1
		/// </summary>
		public string Class1
		{
			get {return class1;}
			set {class1=value;}
		}
		/// <summary>
		/// CLASS2
		/// </summary>
		public string Class2
		{
			get {return class2;}
			set {class2=value;}
		}
		/// <summary>
		/// CLASS3
		/// </summary>
		public string Class3
		{
			get {return class3;}
			set {class3=value;}
		}
		/// <summary>
		/// CLASS4
		/// </summary>
		public string Class4
		{
			get {return class4;}
			set {class4=value;}
		}
		/// <summary>
		/// CLASS5
		/// </summary>
		public string Class5
		{
			get {return class5;}
			set {class5=value;}
		}
		/// <summary>
		/// CLASS6
		/// </summary>
		public string Class6
		{
			get {return class6;}
			set {class6=value;}
		}
		/// <summary>
		/// CLASS7
		/// </summary>
		public string Class7
		{
			get {return class7;}
			set {class7=value;}
		}
		/// <summary>
		/// CLASS8
		/// </summary>
		public string Class8
		{
			get {return class8;}
			set {class8=value;}
		}
		/// <summary>
		/// CLASS9
		/// </summary>
		public string Class9
		{
			get {return class9;}
			set {class9=value;}
		}
		/// <summary>
		/// CLASS10
		/// </summary>
		public string Class10
		{
			get {return class10;}
			set {class10=value;}
		}
		/// <summary>
		/// CLASS11
		/// </summary>
		public string Class11
		{
			get {return class11;}
			set {class11=value;}
		}
		/// <summary>
		/// CLASS12
		/// </summary>
		public string Class12
		{
			get {return class12;}
			set {class12=value;}
		}
		/// <summary>
		/// FROM_YEAR
		/// </summary>
		public int FromYear
		{
			get {return fromYear;}
			set {fromYear=value;}
		}
		/// <summary>
		///XXLDJ	INT	现训练等级（单位：0无、1二级、2一级（最高级）；个人：0无、1不合格、2合格、3优等（最高级））	
		/// </summary>
		public int FromLevel
		{
			get {return fromLevel;}
			set {fromLevel=value;}
		}
		/// <summary>
		/// TO_LEVEL
		/// </summary>
		public int ToLevel
		{
			get {return toLevel;}
			set {toLevel=value;}
		}
		/// <summary>
		/// APPROVE_LEV
		/// </summary>
		public int ApproveLev
		{
			get {return approveLev;}
			set {approveLev=value;}
		}
		/// <summary>
		/// SBDW_ID
		/// </summary>
		public string SbdwId
		{
			get {return sbdwId;}
			set {sbdwId=value;}
		}
		/// <summary>
		/// SBDW_NAME
		/// </summary>
		public string SbdwName
		{
			get {return sbdwName;}
			set {sbdwName=value;}
		}
		/// <summary>
		/// SLDW_ID
		/// </summary>
		public string SldwId
		{
			get {return sldwId;}
			set {sldwId=value;}
		}
		/// <summary>
		/// SBR_ID
		/// </summary>
		public string SbrId
		{
			get {return sbrId;}
			set {sbrId=value;}
		}
		/// <summary>
		/// SBR_NAME
		/// </summary>
		public string SbrName
		{
			get {return sbrName;}
			set {sbrName=value;}
		}
		/// <summary>
		/// SLDW_NAME
		/// </summary>
		public string SldwName
		{
			get {return sldwName;}
			set {sldwName=value;}
		}
		/// <summary>
		/// SBSJ
		/// </summary>
		public DateTime Sbsj
		{
			get {return sbsj;}
			set {sbsj=value;}
		}
		/// <summary>
		///申报阶段（ 0 待申报， 1申报； 3审查；7考察； 15评定通过   任何在5个BIT为1的，表示否决）因此15被认为是最终通过。   
		/// </summary>
		public int LevDclStatus
		{
			get {return levDclStatus;}
			set {levDclStatus=value;}
		}
		/// <summary>
		///（受理单位做资格审查的人）资格审查无意见，要么过，要么不过。
		/// </summary>
		public string ScrId
		{
			get {return scrId;}
			set {scrId=value;}
		}
		/// <summary>
		/// SCR_NAME
		/// </summary>
		public string ScrName
		{
			get {return scrName;}
			set {scrName=value;}
		}
		/// <summary>
		/// SCSJ
		/// </summary>
		public DateTime Scsj
		{
			get {return scsj;}
			set {scsj=value;}
		}
		/// <summary>
		/// ASS_GRP_ID
		/// </summary>
		public string AssGrpId
		{
			get {return assGrpId;}
			set {assGrpId=value;}
		}
		/// <summary>
		/// ASS_GRP_NAME
		/// </summary>
		public string AssGrpName
		{
			get {return assGrpName;}
			set {assGrpName=value;}
		}
		/// <summary>
		/// ASS_GRP_SCORE
		/// </summary>
		public int AssGrpScore
		{
			get {return assGrpScore;}
			set {assGrpScore=value;}
		}
		/// <summary>
		///考察人（填写定级考察情况的人）
		/// </summary>
		public string KcrId
		{
			get {return kcrId;}
			set {kcrId=value;}
		}
		/// <summary>
		/// KCR_NAME
		/// </summary>
		public string KcrName
		{
			get {return kcrName;}
			set {kcrName=value;}
		}
		/// <summary>
		/// KCSJ
		/// </summary>
		public DateTime Kcsj
		{
			get {return kcsj;}
			set {kcsj=value;}
		}
		/// <summary>
		/// PDR_ID
		/// </summary>
		public string PdrId
		{
			get {return pdrId;}
			set {pdrId=value;}
		}
		/// <summary>
		/// PDR_NAME
		/// </summary>
		public string PdrName
		{
			get {return pdrName;}
			set {pdrName=value;}
		}
		/// <summary>
		/// PDSJ
		/// </summary>
		public DateTime Pdsj
		{
			get {return pdsj;}
			set {pdsj=value;}
		}
		/// <summary>
		/// ZGSCQK
		/// </summary>
		public string Zgscqk
		{
			get {return zgscqk;}
			set {zgscqk=value;}
		}
		/// <summary>
		/// ZGSBQK
		/// </summary>
		public string Zgsbqk
		{
			get {return zgsbqk;}
			set {zgsbqk=value;}
		}
		/// <summary>
		/// DJKCQK
		/// </summary>
		public string Djkcqk
		{
			get {return djkcqk;}
			set {djkcqk=value;}
		}
		#endregion
		
		#region 辅助函数
		/// <summary>
		/// 拷贝函数
		/// </summary>
		public MoLevelDeclare CopyTo(MoLevelDeclare item)
        {
		    item.levDclId=this.levDclId;
		    item.yearNum=this.yearNum;
		    item.itemType=this.itemType;
		    item.itemId=this.itemId;
		    item.itemName=this.itemName;
		    item.class1=this.class1;
		    item.class2=this.class2;
		    item.class3=this.class3;
		    item.class4=this.class4;
		    item.class5=this.class5;
		    item.class6=this.class6;
		    item.class7=this.class7;
		    item.class8=this.class8;
		    item.class9=this.class9;
		    item.class10=this.class10;
		    item.class11=this.class11;
		    item.class12=this.class12;
		    item.fromYear=this.fromYear;
		    item.fromLevel=this.fromLevel;
		    item.toLevel=this.toLevel;
		    item.approveLev=this.approveLev;
		    item.sbdwId=this.sbdwId;
		    item.sbdwName=this.sbdwName;
		    item.sldwId=this.sldwId;
		    item.sbrId=this.sbrId;
		    item.sbrName=this.sbrName;
		    item.sldwName=this.sldwName;
		    item.sbsj=this.sbsj;
		    item.levDclStatus=this.levDclStatus;
		    item.scrId=this.scrId;
		    item.scrName=this.scrName;
		    item.scsj=this.scsj;
		    item.assGrpId=this.assGrpId;
		    item.assGrpName=this.assGrpName;
		    item.assGrpScore=this.assGrpScore;
		    item.kcrId=this.kcrId;
		    item.kcrName=this.kcrName;
		    item.kcsj=this.kcsj;
		    item.pdrId=this.pdrId;
		    item.pdrName=this.pdrName;
		    item.pdsj=this.pdsj;
		    item.zgscqk=this.zgscqk;
		    item.zgsbqk=this.zgsbqk;
		    item.djkcqk=this.djkcqk;
			return item;
        }
		/// <summary>
		/// 克隆函数
		/// </summary>		
		public object Clone()
        {
            MoLevelDeclare mo=new MoLevelDeclare();
		    mo.LevDclId=this.LevDclId;
		    mo.YearNum=this.YearNum;
		    mo.ItemType=this.ItemType;
		    mo.ItemId=this.ItemId;
		    mo.ItemName=this.ItemName;
		    mo.Class1=this.Class1;
		    mo.Class2=this.Class2;
		    mo.Class3=this.Class3;
		    mo.Class4=this.Class4;
		    mo.Class5=this.Class5;
		    mo.Class6=this.Class6;
		    mo.Class7=this.Class7;
		    mo.Class8=this.Class8;
		    mo.Class9=this.Class9;
		    mo.Class10=this.Class10;
		    mo.Class11=this.Class11;
		    mo.Class12=this.Class12;
		    mo.FromYear=this.FromYear;
		    mo.FromLevel=this.FromLevel;
		    mo.ToLevel=this.ToLevel;
		    mo.ApproveLev=this.ApproveLev;
		    mo.SbdwId=this.SbdwId;
		    mo.SbdwName=this.SbdwName;
		    mo.SldwId=this.SldwId;
		    mo.SbrId=this.SbrId;
		    mo.SbrName=this.SbrName;
		    mo.SldwName=this.SldwName;
		    mo.Sbsj=this.Sbsj;
		    mo.LevDclStatus=this.LevDclStatus;
		    mo.ScrId=this.ScrId;
		    mo.ScrName=this.ScrName;
		    mo.Scsj=this.Scsj;
		    mo.AssGrpId=this.AssGrpId;
		    mo.AssGrpName=this.AssGrpName;
		    mo.AssGrpScore=this.AssGrpScore;
		    mo.KcrId=this.KcrId;
		    mo.KcrName=this.KcrName;
		    mo.Kcsj=this.Kcsj;
		    mo.PdrId=this.PdrId;
		    mo.PdrName=this.PdrName;
		    mo.Pdsj=this.Pdsj;
		    mo.Zgscqk=this.Zgscqk;
		    mo.Zgsbqk=this.Zgsbqk;
		    mo.Djkcqk=this.Djkcqk;
			return mo;
		}
				///<summary>
		///判断对象是否相等
		///<summary>
		public override bool Equals(object obj)
        {		 
            if (object.ReferenceEquals(this,obj))
            {
                return true;
            }
            else
            {
                MoLevelDeclare NewLevelDeclare = obj as MoLevelDeclare;
                if (NewLevelDeclare == null)
                {
                    return false;
                }
                else
                {
				if (NewLevelDeclare.LevDclId==this.LevDclId && NewLevelDeclare.YearNum==this.YearNum && NewLevelDeclare.ItemType==this.ItemType && NewLevelDeclare.ItemId==this.ItemId && NewLevelDeclare.ItemName==this.ItemName && NewLevelDeclare.Class1==this.Class1 && NewLevelDeclare.Class2==this.Class2 && NewLevelDeclare.Class3==this.Class3 && NewLevelDeclare.Class4==this.Class4 && NewLevelDeclare.Class5==this.Class5 && NewLevelDeclare.Class6==this.Class6 && NewLevelDeclare.Class7==this.Class7 && NewLevelDeclare.Class8==this.Class8 && NewLevelDeclare.Class9==this.Class9 && NewLevelDeclare.Class10==this.Class10 && NewLevelDeclare.Class11==this.Class11 && NewLevelDeclare.Class12==this.Class12 && NewLevelDeclare.FromYear==this.FromYear && NewLevelDeclare.FromLevel==this.FromLevel && NewLevelDeclare.ToLevel==this.ToLevel && NewLevelDeclare.ApproveLev==this.ApproveLev && NewLevelDeclare.SbdwId==this.SbdwId && NewLevelDeclare.SbdwName==this.SbdwName && NewLevelDeclare.SldwId==this.SldwId && NewLevelDeclare.SbrId==this.SbrId && NewLevelDeclare.SbrName==this.SbrName && NewLevelDeclare.SldwName==this.SldwName && NewLevelDeclare.Sbsj==this.Sbsj && NewLevelDeclare.LevDclStatus==this.LevDclStatus && NewLevelDeclare.ScrId==this.ScrId && NewLevelDeclare.ScrName==this.ScrName && NewLevelDeclare.Scsj==this.Scsj && NewLevelDeclare.AssGrpId==this.AssGrpId && NewLevelDeclare.AssGrpName==this.AssGrpName && NewLevelDeclare.AssGrpScore==this.AssGrpScore && NewLevelDeclare.KcrId==this.KcrId && NewLevelDeclare.KcrName==this.KcrName && NewLevelDeclare.Kcsj==this.Kcsj && NewLevelDeclare.PdrId==this.PdrId && NewLevelDeclare.PdrName==this.PdrName && NewLevelDeclare.Pdsj==this.Pdsj && NewLevelDeclare.Zgscqk==this.Zgscqk && NewLevelDeclare.Zgsbqk==this.Zgsbqk && NewLevelDeclare.Djkcqk==this.Djkcqk)		
					{
                        return true; 
                    }
                }

            }
            return false;
            
        }
		///TODO:you should modify GetHashCode by yourself.
		public override int GetHashCode()
		{
			return base.GetHashCode();
		} 

		public override string ToString()
        {
		   return String.Format(System.Globalization.CultureInfo.InvariantCulture,"LevDclId={0}/YearNum={1}/ItemType={2}/ItemId={3}/ItemName={4}/Class1={5}/Class2={6}/Class3={7}/Class4={8}/Class5={9}/Class6={10}/Class7={11}/Class8={12}/Class9={13}/Class10={14}/Class11={15}/Class12={16}/FromYear={17}/FromLevel={18}/ToLevel={19}/ApproveLev={20}/SbdwId={21}/SbdwName={22}/SldwId={23}/SbrId={24}/SbrName={25}/SldwName={26}/Sbsj={27}/LevDclStatus={28}/ScrId={29}/ScrName={30}/Scsj={31}/AssGrpId={32}/AssGrpName={33}/AssGrpScore={34}/KcrId={35}/KcrName={36}/Kcsj={37}/PdrId={38}/PdrName={39}/Pdsj={40}/Zgscqk={41}/Zgsbqk={42}/Djkcqk={43}",levDclId,yearNum,itemType,itemId,itemName,class1,class2,class3,class4,class5,class6,class7,class8,class9,class10,class11,class12,fromYear,fromLevel,toLevel,approveLev,sbdwId,sbdwName,sldwId,sbrId,sbrName,sldwName,sbsj,levDclStatus,scrId,scrName,scsj,assGrpId,assGrpName,assGrpScore,kcrId,kcrName,kcsj,pdrId,pdrName,pdsj,zgscqk,zgsbqk,djkcqk);
		 
		}
		#endregion
		
		
		#region DataTable Help Function
		///<summary>
		///DataRow转换成Model
		///</summary>
		public void Row2Model(DataRow row)
		{
		    if(row["Lev_Dcl_ID"]!=null && row["Lev_Dcl_ID"]!=DBNull.Value)
			{
			    this.LevDclId = (string)row["Lev_Dcl_ID"];
			}
			else
			{
				this.LevDclId =string.Empty;
			}
		    if(row["Year_Num"]!=null && row["Year_Num"]!=DBNull.Value)
			{
			    this.YearNum = (int)row["Year_Num"];
			}
			else
			{
				this.YearNum =0;
			}
		    if(row["ITEM_TYPE"]!=null && row["ITEM_TYPE"]!=DBNull.Value)
			{
			    this.ItemType = (int)row["ITEM_TYPE"];
			}
			else
			{
				this.ItemType =0;
			}
		    if(row["ITEM_ID"]!=null && row["ITEM_ID"]!=DBNull.Value)
			{
			    this.ItemId = (string)row["ITEM_ID"];
			}
			else
			{
				this.ItemId =string.Empty;
			}
		    if(row["ITEM_NAME"]!=null && row["ITEM_NAME"]!=DBNull.Value)
			{
			    this.ItemName = (string)row["ITEM_NAME"];
			}
			else
			{
				this.ItemName =string.Empty;
			}
		    if(row["Class1"]!=null && row["Class1"]!=DBNull.Value)
			{
			    this.Class1 = (string)row["Class1"];
			}
			else
			{
				this.Class1 =string.Empty;
			}
		    if(row["Class2"]!=null && row["Class2"]!=DBNull.Value)
			{
			    this.Class2 = (string)row["Class2"];
			}
			else
			{
				this.Class2 =string.Empty;
			}
		    if(row["Class3"]!=null && row["Class3"]!=DBNull.Value)
			{
			    this.Class3 = (string)row["Class3"];
			}
			else
			{
				this.Class3 =string.Empty;
			}
		    if(row["Class4"]!=null && row["Class4"]!=DBNull.Value)
			{
			    this.Class4 = (string)row["Class4"];
			}
			else
			{
				this.Class4 =string.Empty;
			}
		    if(row["Class5"]!=null && row["Class5"]!=DBNull.Value)
			{
			    this.Class5 = (string)row["Class5"];
			}
			else
			{
				this.Class5 =string.Empty;
			}
		    if(row["Class6"]!=null && row["Class6"]!=DBNull.Value)
			{
			    this.Class6 = (string)row["Class6"];
			}
			else
			{
				this.Class6 =string.Empty;
			}
		    if(row["Class7"]!=null && row["Class7"]!=DBNull.Value)
			{
			    this.Class7 = (string)row["Class7"];
			}
			else
			{
				this.Class7 =string.Empty;
			}
		    if(row["Class8"]!=null && row["Class8"]!=DBNull.Value)
			{
			    this.Class8 = (string)row["Class8"];
			}
			else
			{
				this.Class8 =string.Empty;
			}
		    if(row["Class9"]!=null && row["Class9"]!=DBNull.Value)
			{
			    this.Class9 = (string)row["Class9"];
			}
			else
			{
				this.Class9 =string.Empty;
			}
		    if(row["Class10"]!=null && row["Class10"]!=DBNull.Value)
			{
			    this.Class10 = (string)row["Class10"];
			}
			else
			{
				this.Class10 =string.Empty;
			}
		    if(row["Class11"]!=null && row["Class11"]!=DBNull.Value)
			{
			    this.Class11 = (string)row["Class11"];
			}
			else
			{
				this.Class11 =string.Empty;
			}
		    if(row["Class12"]!=null && row["Class12"]!=DBNull.Value)
			{
			    this.Class12 = (string)row["Class12"];
			}
			else
			{
				this.Class12 =string.Empty;
			}
		    if(row["FROM_YEAR"]!=null && row["FROM_YEAR"]!=DBNull.Value)
			{
			    this.FromYear = (int)row["FROM_YEAR"];
			}
			else
			{
				this.FromYear =0;
			}
		    if(row["FROM_LEVEL"]!=null && row["FROM_LEVEL"]!=DBNull.Value)
			{
			    this.FromLevel = (int)row["FROM_LEVEL"];
			}
			else
			{
				this.FromLevel =0;
			}
		    if(row["TO_LEVEL"]!=null && row["TO_LEVEL"]!=DBNull.Value)
			{
			    this.ToLevel = (int)row["TO_LEVEL"];
			}
			else
			{
				this.ToLevel =0;
			}
		    if(row["Approve_Lev"]!=null && row["Approve_Lev"]!=DBNull.Value)
			{
			    this.ApproveLev = (int)row["Approve_Lev"];
			}
			else
			{
				this.ApproveLev =0;
			}
		    if(row["SBDW_ID"]!=null && row["SBDW_ID"]!=DBNull.Value)
			{
			    this.SbdwId = (string)row["SBDW_ID"];
			}
			else
			{
				this.SbdwId =string.Empty;
			}
		    if(row["SBDW_NAME"]!=null && row["SBDW_NAME"]!=DBNull.Value)
			{
			    this.SbdwName = (string)row["SBDW_NAME"];
			}
			else
			{
				this.SbdwName =string.Empty;
			}
		    if(row["SLDW_ID"]!=null && row["SLDW_ID"]!=DBNull.Value)
			{
			    this.SldwId = (string)row["SLDW_ID"];
			}
			else
			{
				this.SldwId =string.Empty;
			}
		    if(row["SBR_ID"]!=null && row["SBR_ID"]!=DBNull.Value)
			{
			    this.SbrId = (string)row["SBR_ID"];
			}
			else
			{
				this.SbrId =string.Empty;
			}
		    if(row["SBR_NAME"]!=null && row["SBR_NAME"]!=DBNull.Value)
			{
			    this.SbrName = (string)row["SBR_NAME"];
			}
			else
			{
				this.SbrName =string.Empty;
			}
		    if(row["SLDW_NAME"]!=null && row["SLDW_NAME"]!=DBNull.Value)
			{
			    this.SldwName = (string)row["SLDW_NAME"];
			}
			else
			{
				this.SldwName =string.Empty;
			}
		    if(row["SBSJ"]!=null && row["SBSJ"]!=DBNull.Value)
			{
			    this.Sbsj = (DateTime)row["SBSJ"];
			}
			else
			{
				this.Sbsj =DateTime.MinValue;
			}
		    if(row["Lev_Dcl_Status"]!=null && row["Lev_Dcl_Status"]!=DBNull.Value)
			{
			    this.LevDclStatus = (int)row["Lev_Dcl_Status"];
			}
			else
			{
				this.LevDclStatus =0;
			}
		    if(row["SCR_ID"]!=null && row["SCR_ID"]!=DBNull.Value)
			{
			    this.ScrId = (string)row["SCR_ID"];
			}
			else
			{
				this.ScrId =string.Empty;
			}
		    if(row["SCR_NAME"]!=null && row["SCR_NAME"]!=DBNull.Value)
			{
			    this.ScrName = (string)row["SCR_NAME"];
			}
			else
			{
				this.ScrName =string.Empty;
			}
		    if(row["SCSJ"]!=null && row["SCSJ"]!=DBNull.Value)
			{
			    this.Scsj = (DateTime)row["SCSJ"];
			}
			else
			{
				this.Scsj =DateTime.MinValue;
			}
		    if(row["Ass_Grp_ID"]!=null && row["Ass_Grp_ID"]!=DBNull.Value)
			{
			    this.AssGrpId = (string)row["Ass_Grp_ID"];
			}
			else
			{
				this.AssGrpId =string.Empty;
			}
		    if(row["Ass_Grp_Name"]!=null && row["Ass_Grp_Name"]!=DBNull.Value)
			{
			    this.AssGrpName = (string)row["Ass_Grp_Name"];
			}
			else
			{
				this.AssGrpName =string.Empty;
			}
		    if(row["Ass_Grp_Score"]!=null && row["Ass_Grp_Score"]!=DBNull.Value)
			{
			    this.AssGrpScore = (int)row["Ass_Grp_Score"];
			}
			else
			{
				this.AssGrpScore =0;
			}
		    if(row["KCR_ID"]!=null && row["KCR_ID"]!=DBNull.Value)
			{
			    this.KcrId = (string)row["KCR_ID"];
			}
			else
			{
				this.KcrId =string.Empty;
			}
		    if(row["KCR_NAME"]!=null && row["KCR_NAME"]!=DBNull.Value)
			{
			    this.KcrName = (string)row["KCR_NAME"];
			}
			else
			{
				this.KcrName =string.Empty;
			}
		    if(row["KCSJ"]!=null && row["KCSJ"]!=DBNull.Value)
			{
			    this.Kcsj = (DateTime)row["KCSJ"];
			}
			else
			{
				this.Kcsj =DateTime.MinValue;
			}
		    if(row["PDR_ID"]!=null && row["PDR_ID"]!=DBNull.Value)
			{
			    this.PdrId = (string)row["PDR_ID"];
			}
			else
			{
				this.PdrId =string.Empty;
			}
		    if(row["PDR_NAME"]!=null && row["PDR_NAME"]!=DBNull.Value)
			{
			    this.PdrName = (string)row["PDR_NAME"];
			}
			else
			{
				this.PdrName =string.Empty;
			}
		    if(row["PDSJ"]!=null && row["PDSJ"]!=DBNull.Value)
			{
			    this.Pdsj = (DateTime)row["PDSJ"];
			}
			else
			{
				this.Pdsj =DateTime.MinValue;
			}
		    if(row["ZGSCQK"]!=null && row["ZGSCQK"]!=DBNull.Value)
			{
			    this.Zgscqk = (string)row["ZGSCQK"];
			}
			else
			{
				this.Zgscqk =string.Empty;
			}
		    if(row["ZGSBQK"]!=null && row["ZGSBQK"]!=DBNull.Value)
			{
			    this.Zgsbqk = (string)row["ZGSBQK"];
			}
			else
			{
				this.Zgsbqk =string.Empty;
			}
		    if(row["DJKCQK"]!=null && row["DJKCQK"]!=DBNull.Value)
			{
			    this.Djkcqk = (string)row["DJKCQK"];
			}
			else
			{
				this.Djkcqk =string.Empty;
			}
		}
		
		///<summary>
		///Model转换成DataRow
		///</summary>
	　　public void Model2Row(DataRow row)
		{
			row["Lev_Dcl_ID"] = this.LevDclId;
			row["Year_Num"] = this.YearNum;
			row["ITEM_TYPE"] = this.ItemType;
			row["ITEM_ID"] = this.ItemId;
			row["ITEM_NAME"] = this.ItemName;
			row["Class1"] = this.Class1;
			row["Class2"] = this.Class2;
			row["Class3"] = this.Class3;
			row["Class4"] = this.Class4;
			row["Class5"] = this.Class5;
			row["Class6"] = this.Class6;
			row["Class7"] = this.Class7;
			row["Class8"] = this.Class8;
			row["Class9"] = this.Class9;
			row["Class10"] = this.Class10;
			row["Class11"] = this.Class11;
			row["Class12"] = this.Class12;
			row["FROM_YEAR"] = this.FromYear;
			row["FROM_LEVEL"] = this.FromLevel;
			row["TO_LEVEL"] = this.ToLevel;
			row["Approve_Lev"] = this.ApproveLev;
			row["SBDW_ID"] = this.SbdwId;
			row["SBDW_NAME"] = this.SbdwName;
			row["SLDW_ID"] = this.SldwId;
			row["SBR_ID"] = this.SbrId;
			row["SBR_NAME"] = this.SbrName;
			row["SLDW_NAME"] = this.SldwName;
			row["SBSJ"] = this.Sbsj;
			row["Lev_Dcl_Status"] = this.LevDclStatus;
			row["SCR_ID"] = this.ScrId;
			row["SCR_NAME"] = this.ScrName;
			row["SCSJ"] = this.Scsj;
			row["Ass_Grp_ID"] = this.AssGrpId;
			row["Ass_Grp_Name"] = this.AssGrpName;
			row["Ass_Grp_Score"] = this.AssGrpScore;
			row["KCR_ID"] = this.KcrId;
			row["KCR_NAME"] = this.KcrName;
			row["KCSJ"] = this.Kcsj;
			row["PDR_ID"] = this.PdrId;
			row["PDR_NAME"] = this.PdrName;
			row["PDSJ"] = this.Pdsj;
			row["ZGSCQK"] = this.Zgscqk;
			row["ZGSBQK"] = this.Zgsbqk;
			row["DJKCQK"] = this.Djkcqk;
		}
		#endregion
	}
}
#endregion
